package wang.java;


/**
 * @author wang
 */
public abstract class Bootstrap {
    public static void main(String[] args) {
        System.out.printf("堆内存%sM,空闲%sM%n", Runtime.getRuntime().totalMemory() / 1024 / 1024, Runtime.getRuntime().freeMemory() / 1024 / 1024);
        System.out.println("eden区20M,S0=S1=10M,老年代60M");
        byte[] _10M = new byte[10 * 1024 * 1024];
        byte[] _4M = new byte[4 * 1024 * 1024];
        byte[] _4M2 = new byte[4 * 1024 * 1024];
        System.out.println("eden区空间不足，发生minor gc");
        byte[] _4M3 = new byte[4 * 1024 * 1024];
        byte[] _16M = new byte[16 * 1024 * 1024];
    }
}
